package com.zmzncs.lmtc.module.customer.dao;

import com.zmzncs.lmtc.module.customer.pojo.CapitalRecord;

import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;

@Repository
public interface CapitalRecordMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(CapitalRecord record);

    int insertSelective(CapitalRecord record);

    CapitalRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CapitalRecord record);

    int updateByPrimaryKey(CapitalRecord record);

    //根据条件查询充值记录
    List<CapitalRecord> selectByManager(CapitalRecord model);

    //根据条件查询充值记录
    BigDecimal selectBalanceByManager(CapitalRecord model);

}